import BMap from "BMap";
export default{
  getLocation(state){
    let geolocation = new BMap.Geolocation();
    geolocation.getCurrentPosition(function(r){
      state.location = r.address.city
    })
  },
  setUserData(state,val){
    state.userData = val;
  },
  setUserHobby(state,val){
    state.userHobby = val;
  },
  setIsLogin(state,val){
    state.isLogin = val;
  },
  setIsWritingShow(state,val){
    state.isWritingShow = val;
  },
  setIsVideoShow(state,val){
    state.isVideoShow = val;
  }
}